home *** CD-ROM | disk | FTP | other *** search
- /*
- VCDemoMain.c
-
- main function for VCDemo.
-
- ====================
- A friendly reminder:
-
- The intent here is just to test and demo a QD3D Viewer client.
-
- This application performs virtually NO error checking.
-
- This application is not supported by anyone,
- not even the author, who shall thankfully remain anonymous.
-
- DO NOT USE THIS CODE FOR ANYTHING OTHER THAN "GETTING THE GENERAL IDEA"!
- ========================================================================
-
- © 1995 Apple Computer, Inc.
- */
- #include <QuickDraw.h>
- #include <Windows.h>
-
- #include "EventLoop.h"
- #include "MenuDispatch.h"
-
- WindowPtr MainView;
-
- extern void InitToolBox(short numberOfMasters);
- extern void MainEvent(void);
- extern void BuildMenuBars(void);
- extern void ChooseFile(short item);
-
- void main(void)
- {
- InitToolBox(4);
-
- BuildMenuBars();
- ChooseFile(cmdNew);
- SetPort(MainView);
-
- while(!Done) {
- MainEvent();
- if(!FrontWindow())
- MainView = nil;
- }
- }
-
- /* EOF */